import type { ApiLoginParams } from '@/types/login'
import request from './request'

// 登录
export async function login(body: ApiLoginParams, options: Record<string, any> = {}) {
  return request(`login`, {
    method: 'GET',
    params: body,
    ...options,
  }).then((res) => {
    return res
  })
}
